package packageofjbxq;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import bingliandshuju.SingleDataofAll;
import bingliandshuju.SingleInformationofIllnessDetail;

import com.example.animaldoctor03.AllIllness;
import com.example.animaldoctor03.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class LingChuangZZ extends Activity {
	private Button buttonoflczzf = null;
	private TextView textoflczz = null;
	private String lingchuangzz = null;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.lingchuangzz);
		
		buttonoflczzf = (Button)findViewById(R.id.buttonoflczzf);
		textoflczz = (TextView)findViewById(R.id.textoflczz);
		
		
		buttonoflczzf.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				List<Object> listoflczzf = new ArrayList <Object>();
				SingleDataofAll SDAoflczzf = SingleDataofAll.getInstance();
				listoflczzf = SDAoflczzf.getListinformation();
				
				Bundle bundleoflczzf = new Bundle();
				bundleoflczzf.putSerializable("shuju", (Serializable) listoflczzf);
				Intent intentoflczzf = new Intent(LingChuangZZ.this , AllIllness.class);
				intentoflczzf.putExtras(bundleoflczzf);
				startActivity(intentoflczzf);
				finish();
				
			}
		});
		SingleInformationofIllnessDetail SIIDoflczz = SingleInformationofIllnessDetail.getInstance();
		 lingchuangzz =	SIIDoflczz.getlingchuangZZ();
		Message msgoflczz = new Message();
		msgoflczz.what = 1;
		handleroflczz.sendMessage(msgoflczz);
		
		
	}
	public Handler handleroflczz = new Handler(){


		public void handleMessage(Message msg) {
			// TODO Auto-generated method stub
		
			if(msg.what == 1){
				
				textoflczz.setText(" 临床症状            " + '\n' +  lingchuangzz);
			}
		}
		
		
	};

	}


